package org.dromara.quick.chat.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.common.core.domain.R;
import org.dromara.quick.chat.domain.ImGroupMember;
import org.dromara.quick.chat.model.bo.create.AddGroupMemberDTO;
import org.dromara.quick.chat.model.vo.ImGroupMemberVO;
import org.dromara.system.api.domain.vo.RemoteUserBasicVO;

/**
* @author Stars
* @description 针对表【im_group_member(群成员表，记录群聊中成员的相关信息)】的数据库操作Service
* @createDate 2025-03-04 22:33:21
*/
public interface ImGroupMemberService extends IService<ImGroupMember> {


    /**
     * 群添加成员
     */
    R<?> addGroupMember(AddGroupMemberDTO addGroupMemberDTO);


    /***
     * 根据群id和用户id查询基本信息
     * @param groupId
     * @param userId
     * @return
     */
    RemoteUserBasicVO handleGroupNicknameAndAvatar(Long groupId,Long userId);


    /**
     * 根据群id和用户id查询群用户
     */
    ImGroupMemberVO queryGroupMember(Long groupId,Long userId) ;

}
